package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.vo.doctor.diagnosis.GetAllDiagnosisVo;
import com.ccys.doctor.service.DiagnosisService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: WhiteCoat
 * @description: 诊断相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-08 16:37
 **/

@RestController
@Api(tags = "诊断相关接口")
@RequestMapping("diagnosis")
public class DiagnosisController {

    @Autowired
    private DiagnosisService diagnosisService;

    @ApiOperation("查询所有诊断(这里查询的当前医生所在group)")
    @GetMapping(value = "/GetAllDiagnosis")
    public ResponseResultApp<List<GetAllDiagnosisVo>> getAllDiagnosis() {
        return diagnosisService.getAllDiagnosis();
    }

}
